<?php
declare (strict_types = 1);

namespace app\model;

use think\Model;

/**
 * @mixin \think\Model
 */
class ReviewProject extends AppModel
{
    //

    const SYNC_STATUS_ONE = 0;
    const SYNC_STATUS_TWO = 1;


    public static  $sync_status = array(
        self::SYNC_STATUS_ONE => '未同步',
        self::SYNC_STATUS_TWO => '已同步'
    );


    public function samples(){
        return $this->hasMany(Sample::class,'review_project_id');
    }

    public function cases(){
        return $this->hasMany(ReviewCase::class,'review_project_id');
    }
}
